package com.baitengsoft.patentapimonitor.api.service.impl;

import com.baitengsoft.patentapimonitor.api.entity.WebApplicanttypeRlatEntity;
import com.baitengsoft.patentapimonitor.api.service.WebApplicanttypeRlatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Admin on 2017/12/15.
 */
@Service
public class WebApplicanttypeRlatServiceImpl  extends BaseServiceImpl<WebApplicanttypeRlatEntity> implements WebApplicanttypeRlatService {

    @Autowired
    private com.baitengsoft.patentapimonitor.api.dao.WebApplicanttypeRlatDao webApplicanttypeRlatDaoDao;

        @Override
        public WebApplicanttypeRlatEntity getInfo(int id){

            WebApplicanttypeRlatEntity entity= webApplicanttypeRlatDaoDao.selectByPrimaryKey(id);
            queryById(id);
            return entity;
        }

    @Override
    public List<WebApplicanttypeRlatEntity> infos() {


       WebApplicanttypeRlatEntity entity=new WebApplicanttypeRlatEntity();
       entity.setTypeid(2);
//        List<WebApplicanttypeRlatEntity> ls=WebApplicanttypeRlatDao.select(entity);
        List<WebApplicanttypeRlatEntity> ls=queryListByWhere(entity);
        return ls;
    }
}
